<template>
<component :is="coms[$store.state.roleid]"/>
</template>

<script>
import PageNation from './nation'
import PageProvince from './province'
import PageCity from './city'
import PageSchool from './school'
import PageClass from './class'

export default {
  name: 'global',
  components: { PageNation, PageProvince, PageCity, PageSchool, PageClass },
  data () {
    return {
      coms: {
        1001: 'page-nation',
        1002: 'page-province',
        1003: 'page-city',
        1005: 'page-school',
        1006: 'page-class',
      }
    }
  }
}
</script>
